package com.achun.getcouponleague.model;

import com.achun.getcouponleague.Bean.CategoriesContent;
import com.achun.getcouponleague.Bean.Category;
import com.achun.getcouponleague.Bean.Red_Packets;
import com.achun.getcouponleague.Bean.SearchRecommend;
import com.achun.getcouponleague.Bean.SearchResult;
import com.achun.getcouponleague.Bean.SelectCategories;
import com.achun.getcouponleague.Bean.SelectContent;
import com.achun.getcouponleague.Bean.TiketBody;
import com.achun.getcouponleague.Bean.TiketContent;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ServiceApi {
    @GET("discovery/categories")
    Call<Category> getCategories();
    @GET("discovery/{materialId}/{page}")
    Call<CategoriesContent> getCategoryContent(@Path("materialId")int categoryId,@Path("page")int page);
    @POST("tpwd")
    Call<TiketContent> getTiketContent(@Body TiketBody tiketBody);
    @GET("recommend/categories")
    Call<SelectCategories> getSelectCategories();
    @GET("recommend/{categoryId}")
    Call<SelectContent> getContentById(@Path("categoryId")int categoryId);
    @GET("onSell/{page}")
    Call<Red_Packets> getRed_Packets(@Path("page")int page);
    @GET("search")
    Call<SearchResult> getSearchResult(@Query("page")int page,@Query("keyword")String keyword);
    @GET("search/recommend")
    Call<SearchRecommend> getSearchRecommend();
}
